export const serialize = (o: object) => {
    let str = `?`;
    Object.entries(o).forEach(([key, value]) => {
        str+=`${key}=${value}&`
    });
    return str.substr(0, str.length-1);
}

export const camelCase = (s: string) => {
  return s.replace(/[A-Z]/g, $0 => `_${$0.toLowerCase()}`);
}
